﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;
namespace PresentationLayer
{
    public partial class CriaActo : Form
    {
        public CriaActo()
        {
            InitializeComponent();
        }

        private void Criar_Click(object sender, EventArgs e)
        {
            this.textDepartamento.SelectAll();
            this.textDesignacao.SelectAll();
            this.textHorasEst.SelectAll();
            this.textIdActo.SelectAll();
            this.textOficina.SelectAll();
            if (ActoActions.CriarActo(this.textIdActo.SelectedText, this.textDepartamento.SelectedText,
                this.textOficina.SelectedText, this.textDesignacao.SelectedText, this.textHorasEst.SelectedText))
                this.Close();

        }
    }
}
